import App from "./App";
import share from "@/utils/share.js";
import Vue from "vue";
import "./uni.promisify.adaptor";
import uView from "@/uni_modules/uview-ui";
import initRequest from "@/services/request";
import { router, RouterMount } from "@/router";
import store from "./store";
import ZPMixin from "@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin";
Vue.prototype.$store = store;
Vue.config.productionTip = false;
Vue.mixin(ZPMixin);
Vue.mixin(share);
Vue.use(router);

Vue.use(uView);

App.mpType = "app";
//初始化请求配置
initRequest();
const app = new Vue({
  store,
  ...App,
});

// #ifdef H5
RouterMount(app, router, "#app");
// #endif

app.$mount();
